package com.wish.wishfinance_management.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.wish.wishfinance_management.entity.TCwReceiptPlan;
import com.wish.wishfinance_management.mapper.TCwReceiptPlanMapper;
import com.wish.wishfinance_management.service.ITCwReceiptPlanService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import dto.financeDto.TCwReceiptPlanDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 收款计划表 服务实现类
 * </p>
 *
 * @author fanzijun
 * @since 2021-04-08
 */
@Service
public class TCwReceiptPlanServiceImpl extends ServiceImpl<TCwReceiptPlanMapper, TCwReceiptPlan> implements ITCwReceiptPlanService {

    @Autowired
    private TCwReceiptPlanMapper tCwReceiptPlanMapper;
    @Override
    public PageInfo<TCwReceiptPlan> selects(TCwReceiptPlanDto tCwReceiptPlan, int pageNum, int pageSize) {
        PageHelper.startPage(pageNum,pageSize);
        List<TCwReceiptPlan> list= tCwReceiptPlanMapper.selects(tCwReceiptPlan);
        return new PageInfo<TCwReceiptPlan>(list);
    }
}
